GDK-Win32: Fix AeroSnap indicator and positioning
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 6 Jul 2021 09:15:39 +0000 (17:15 +0800)
committerLuca Bacci <luca.bacci982@gmail.com>
Thu, 18 Nov 2021 11:40:57 +0000 (12:40 +0100)
commitb8011257970850b3828d1a1a4ef0f67b6f6a0d5d
tree5024fe54587dea0366dbaf9e6ebe44a9c6d5e937
parentaecdd6f68f329467f1a9a91a671e082ef1a46056
GDK-Win32: Fix AeroSnap indicator and positioning

Ensure that we take the DPI scaling into account so that surfaces will
be placed at their correct positions upon an AeroSnap operation on HiDPI
displays.

Also, use the X coordinate of the surface as-is during snap up so that
we do not inadvertently move the surface to the very left.  Also fix the
AeroSnap indicator drawing for snap up so that it is drawn at the
correct places.

Since we are updating these functions, make the old GdkWindow-era
variable names to match better the names we use nowadays.
gdk/win32/gdksurface-win32.c